<form role="form" class="epii" method="post" data-form="1" action="">

    <div class="form-group">
        <label>资源名称：</label>
        <input type="text" class="form-control" name="name" placeholder="请输入资源名称" value="{$info['name'] ? ''}" required>
    </div>
    <div class="form-group">
        <label>资源唯一标识符：</label>
        <input type="text" class="form-control" name="code" placeholder="请输入资源唯一标识符" value="{$info['code'] ? ''}" required>
    </div>
    <div class="form-group">
        <label>资源所属：</label>
        <select name="belong" id="" class="selectpicker">
            {:options,$opts,$info['belong']?0}
        </select>
    </div>
    <div class="form-group">
        <label>选择文件：</label>
        <div data-upload-preview=1
             data-input-id="image"
             data-maxcount=1
             data-mimetype="jpg,png,gif,jpeg"
             data-url="?app=file@upload">
        </div>
        <input type="hidden"
               class="form-control"
               name="path"
               id="image"
               value="{$info['path']}"
               data-src="">
    </div>
    <div class="form-footer">
        <input type="hidden" name="id" value="{$info['id'] ? 0}">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
</form>